package com.xy.Dao.Impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.xy.Dao.BaseDao;
import com.xy.Dao.UserDao;

public class UserDaoImpl extends BaseDao implements UserDao {

	@Override
	public boolean getName(String email) {
		String sql = "select * from email where email=?";
		Object[] obj = { email };
		ResultSet rs = Query(sql, obj);
		try {
			if (rs.next()) {
				return true;
			}
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			CloseAll(rs, null, null);
		}
		return false;
	}

}
